package com.lipengcheng.feign.clients;

import com.lipengcheng.feign.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice")
public interface UserFeignClient {

    @GetMapping("/address/{id}")
    Address findAddressById(@PathVariable("id") Long id);

}